import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

const pre = 'doctor-'

export default {
  path: '/doctor',
  name: 'doctor',
  redirect: {
    name: `${pre}list`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        ...meta,
        title: '医生列表'
      },
      component: () => import('@/pages/doctor/doctorList')
    },
    {
      path: 'schedule',
      name: `${pre}schedule`,
      meta: {
        ...meta,
        title: '排班'
      },
      component: () => import('@/pages/doctor/schedule')
    }
  ]
}
